#include<stdio.h>
#define M 4
#define N 5
int fun(int a[M][N])
{
	int x=0;
	void clrscr();
	for(int i=0;i<M;i++)
	{
		if(i==0||i==3)
		{
			for(int j=0;j<N;j++)
			{
				x+=a[i][j];
			}
		}
		else
		{
			x+=a[i][0]+a[i][4];
		}
	}
	return x;
}
int main()
{int aa[M][N]={{1,3,5,7,9},{2,9,9,9,4},{6,9,9,9,8},{1,3,5,7,0}};
int i,j,y;
printf("The original data is : \n");
for(i=0;i<M;i++)
  {for(j=0;j<N;j++) printf("%6d",aa[i][j]);
  printf("\n");
  }
y=fun(aa);
printf("\nThe sum: %d\n",y);
printf("\n");
}
